
package Exception;

/**
 * this class is used to handle empty search results exception
 * @author Spence
 */
public class EmptySet extends Exception {

    private String serviceName;
    private String shortMessage;

    /**
     * Constructor
     * @param serviceName
     * @param shortMessage
     */
    public EmptySet(String serviceName, String shortMessage) {
        this.serviceName = serviceName;
        this.shortMessage = shortMessage;
    }

    /**
     * @param exception
     */
    public EmptySet(Exception exception) {
        super(exception);
    }

    /**
     * @return the serviceName for which exception happened
     */
    public String getServiceName() {
        return serviceName;
    }

    /**
     * @return the shortMessage
     */
    public String getShortMessage() {
        return shortMessage;
    }
}
